#include <stdio.h>
#include <stdlib.h>



int isPalindrome(int x) 
{

	if( x <= 0)
		return 0;
	else
	{
		int Len=0;
		while(x!=0)
		{
			x= x/10; 
			Len++;
			
		}
		int tem =9;
		switch(Len)
		{
			case 0: ; 
			break;
			
			case 1: if( (x + tem) / 10 == 0 ) return 1 ;
			break;

			case 2: ; 
			break;
			case 3: ; 
			break;
			case 4: ; 
			break;
			case 5: ; 
			break;
		}

	}
}


int main ()
{
	int i = 0;
	int x= 0;
	
	printf("请输入需要判断的数字\n");
	scanf("%d",&x);
	
	i = isPalindrome(x);
	printf("i = %d ",i);
	

	return 0;
}